package cn.yuhh.serviec;

import cn.yuhh.entity.Type;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ITypeService {

    Page<Type> listType(Pageable pageable);

    Type findById(Long id);

    void updateTypeById(Long id, Type type);

    Type findByName(String name);

    Type save(Type type);

    void deleteById(Long id);

    List<Type> listType();
}
